import {ElInput} from 'element-plus'
import {AbstractComponent} from "/@/components/Base/BaseEditTable/component/AbstractComponent";
import {nextTick} from "vue";

export class Input extends AbstractComponent {
    private value

    public setProperties(value, obj) {
        this.value = value
    }

    public getComponent() {
        return ElInput
    }

    public formatLabel(): string {
        return this.value ? this.value : ''
    }

    public whetherFormat(): boolean {
        return true;
    }

    public getFocus(vRef): void {
        nextTick(() => {
            vRef.value.focus()
        })
    }



}